package com.elong.android.specialhouse.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.elong.android.specialhouse.ui.GetTagNameInterface;

/**
 * 
 * @ClassName: City
 * @Description: 城市信息实体类
 * @author kaiqi.li
 * @date 2015-8-3 下午4:29:37
 */
public class City implements GetTagNameInterface{
	
	@JSONField(name = "CityId")
	private String cityId ;			//城市id
	
	@JSONField(name = "CityName")
	private String cityName ;		//城市名称
	
	@JSONField(name = "JianPin")
	private String jianPin ;		//简拼
	
	@JSONField(name = "PinYin")
	private String pinYin ;			//拼音
	
	private boolean isSeparator  = false ;    //标识符


	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getJianPin() {
		return jianPin;
	}

	public void setJianPin(String jianPin) {
		this.jianPin = jianPin;
	}

	public String getPinYin() {
		return pinYin;
	}

	public void setPinYin(String pinYin) {
		this.pinYin = pinYin;
	}

	@JSONField(serialize = false)
	public boolean isSeparator() {
		return isSeparator;
	}

	@JSONField(deserialize = false)
	public void setSeparator(boolean isSeparator) {
		this.isSeparator = isSeparator;
	}

	@Override
	@JSONField(deserialize = false)
	public String getTagName() {
		return cityName.substring(0,2);
	}
}
